package com.lin.cms.domain;

import java.io.Serializable;

public class ChannelExt implements Serializable {

	private static final long serialVersionUID = 1L;

	private int channelId;

	private String channelName;

	private int finalStep;

	private int afterCheck;

	private String isStaticChannel;

	private String isStaticContent;

	private String isAccessByDir;

	private String isListChild;

	private int pageSize;

	private String channelRule;

	private String contentRule;

	private String link;

	private String tplChannel;

	private String tplContent;

	private String titleImg;

	private String contentImg;

	private String hasTitleImg;

	private String hasContentImg;

	private int titleImgWidth;

	private int titleImgHeight;

	private int contentImgWidth;

	private int contentImgHeight;

	private int commentControl;

	private String allowUpdown;

	private String isBlank;

	private String title;

	private String keywords;

	private String description;

	public ChannelExt() {
	}

	public int getChannelId() {
		return channelId;
	}

	public void setChannelId(int channelId) {
		this.channelId = channelId;
	}

	public String getChannelName() {
		return channelName;
	}

	public void setChannelName(String channelName) {
		this.channelName = channelName;
	}

	public int getFinalStep() {
		return finalStep;
	}

	public void setFinalStep(int finalStep) {
		this.finalStep = finalStep;
	}

	public int getAfterCheck() {
		return afterCheck;
	}

	public void setAfterCheck(int afterCheck) {
		this.afterCheck = afterCheck;
	}

	public String getIsStaticChannel() {
		return isStaticChannel;
	}

	public void setIsStaticChannel(String isStaticChannel) {
		this.isStaticChannel = isStaticChannel;
	}

	public String getIsStaticContent() {
		return isStaticContent;
	}

	public void setIsStaticContent(String isStaticContent) {
		this.isStaticContent = isStaticContent;
	}

	public String getIsAccessByDir() {
		return isAccessByDir;
	}

	public void setIsAccessByDir(String isAccessByDir) {
		this.isAccessByDir = isAccessByDir;
	}

	public String getIsListChild() {
		return isListChild;
	}

	public void setIsListChild(String isListChild) {
		this.isListChild = isListChild;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public String getChannelRule() {
		return channelRule;
	}

	public void setChannelRule(String channelRule) {
		this.channelRule = channelRule;
	}

	public String getContentRule() {
		return contentRule;
	}

	public void setContentRule(String contentRule) {
		this.contentRule = contentRule;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public String getTplChannel() {
		return tplChannel;
	}

	public void setTplChannel(String tplChannel) {
		this.tplChannel = tplChannel;
	}

	public String getTplContent() {
		return tplContent;
	}

	public void setTplContent(String tplContent) {
		this.tplContent = tplContent;
	}

	public String getTitleImg() {
		return titleImg;
	}

	public void setTitleImg(String titleImg) {
		this.titleImg = titleImg;
	}

	public String getContentImg() {
		return contentImg;
	}

	public void setContentImg(String contentImg) {
		this.contentImg = contentImg;
	}

	public String getHasTitleImg() {
		return hasTitleImg;
	}

	public void setHasTitleImg(String hasTitleImg) {
		this.hasTitleImg = hasTitleImg;
	}

	public String getHasContentImg() {
		return hasContentImg;
	}

	public void setHasContentImg(String hasContentImg) {
		this.hasContentImg = hasContentImg;
	}

	public int getTitleImgWidth() {
		return titleImgWidth;
	}

	public void setTitleImgWidth(int titleImgWidth) {
		this.titleImgWidth = titleImgWidth;
	}

	public int getTitleImgHeight() {
		return titleImgHeight;
	}

	public void setTitleImgHeight(int titleImgHeight) {
		this.titleImgHeight = titleImgHeight;
	}

	public int getContentImgWidth() {
		return contentImgWidth;
	}

	public void setContentImgWidth(int contentImgWidth) {
		this.contentImgWidth = contentImgWidth;
	}

	public int getContentImgHeight() {
		return contentImgHeight;
	}

	public void setContentImgHeight(int contentImgHeight) {
		this.contentImgHeight = contentImgHeight;
	}

	public int getCommentControl() {
		return commentControl;
	}

	public void setCommentControl(int commentControl) {
		this.commentControl = commentControl;
	}

	public String getAllowUpdown() {
		return allowUpdown;
	}

	public void setAllowUpdown(String allowUpdown) {
		this.allowUpdown = allowUpdown;
	}

	public String getIsBlank() {
		return isBlank;
	}

	public void setIsBlank(String isBlank) {
		this.isBlank = isBlank;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getKeywords() {
		return keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + channelId;

		return result;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final ChannelExt other = (ChannelExt) obj;
		if (channelId != other.channelId)
			return false;

		return true;
	}
	
	@Override
	public String toString() {
		return getClass().getName() + "@" + Integer.toHexString(hashCode()) + 
			"(" + 
			"channelId=" + "'" + channelId + "'" + 
			")";
	}
	
}
